import React, { Component } from 'react';
import { NavLink, Outlet } from 'react-router-dom'

class Home extends Component {
    state = {  } 
    render() { 
        return (
            <div className='myApp'>
                home页面
                <ul>
                    <li>
                        <NavLink to="/home/nav1">nav1组件</NavLink>
                        <NavLink to="/home/nav2">nav2组件</NavLink>
                    </li>
                </ul>
                <br/>
                <div>
                    <Outlet/>
                </div>
            </div>
        );
    }
}
 
export default Home;

